﻿using System;
using System.Collections.Generic;
using TSites.GUI.Enums;
using TSites.Service.Entities;

namespace TSites.GUI.Entities
{
	public class BookmarktFactory
	{
		public static Dictionary<string, object> GetBookmarkHash(CONTRACT_TYPE contractType,
			LANGUAGE language, Immanuelnfo immanuel, Company client, AuditContractParam auditContract)
		{
			Dictionary<string, object> bookmarkHash = new Dictionary<string, object>(64);

			immanuel.AddBookMarks(bookmarkHash, language);
			client.AddBookMarks(bookmarkHash, (int)language);
			switch (contractType)
			{
				case CONTRACT_TYPE.AUDIT_CONTRACT:
					auditContract.AddBookmarks(bookmarkHash, language);
					break;

				default:
					break;
			}

			return bookmarkHash;
		}
	}
}
